package com.nekonomics

import persistence.query.*
import persistence.repository.*

package object persistence {


  private val repoLayers = (
    UserRepo.live ++
      CartItemRepo.live ++
      MerchantRepo.live ++
      SkuRepo.live ++
      SpuRepo.live ++
      OrderRepo.live ++
      OrderItemRepo.live ++
      AddressRepo.live ++
      PaymentRepo.live
    )


  private val queryLayers = (
    CartItemDetailRepo.live ++
      SkuSpecDetailRepo.live ++
      SkuDetailRepo.live ++ 
      OrderItemDetailRepo.live ++
      OrderDetailRepo.live ++
      OrderSummaryRepo.live ++
      TopNRepo.live
    )


  val layers = repoLayers ++ queryLayers
}
